package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.AlertRule;
import com.zzyl.vo.AlertRuleVo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface AlertMapper {


    void inster(AlertRule bean);

    Page<AlertRuleVo> pageQuery(@Param("alertRuleName") String alertRuleName,@Param("functionName") String functionName,@Param("productKey") String productKey);
    @Delete("delete from alert_rule where id=#{id}")
    void deleteAlert(Long id);

    void updateAlert(AlertRule bean);

    List<AlertRuleVo> selectAllAlertRule(@Param("iotId") String iotId, @Param("FunctionId") String FunctionId, @Param("productKey") String productKey);


    List<Long> getuserid(String deviceMaintainerRole);
}
